package com.qst.crop.service;

import com.qst.crop.entity.Reserve;

import java.util.List;

public interface ReserveService {

    /**
     * @Description : 添加预约
     *  * @param reserve
     * @Return : com.qst.crop.common.Result
     */
    void add(Reserve reserve);


    /**
     * 查询user用户的reserve
     * @param username
     * @return
     */
    List<Reserve> selectByKindQuestioner(String username);

    /**
     * 查询expert用户的reserve
     * @param username
     * @return
     */
    List<Reserve> selectByKindExport(String username);


    /**
     * id查询reserve
     * @param id
     * @return Reserve
     */
    Reserve selectById(Integer id);

    /**
     * 更新
     * @param reserve
     * @return int
     */
    int update(Reserve reserve);


    /**
     * 根据id删除
     * @param id
     * @return
     */
    int delById(Integer id);
}
